import Vue from 'vue'
import vueRouter from 'vue-router'
import vueResource from 'vue-resource'
import fastclick from 'fastclick'
import App from './App'
import goods from 'components/goods/goods.vue'
import ratings from 'components/ratings/ratings.vue'
import seller from 'components/seller/seller.vue'
import axios from 'axios'


Vue.use(vueRouter)
Vue.use(vueResource)
fastclick.attach(document.body)//解决延迟点击

//var app = Vue.extend(App)

var router = new vueRouter({
	linkActiveClass:"active"
})

router.map({
	'/goods':{
		component:goods
	},
	'/ratings':{
		component:ratings
	},
	'/seller':{
		component:seller
	}
})
router.start(App,'#app')
//router.go('/seller')